﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MngCatalog.aspx.cs" Inherits="LDSP.UI.Admin.MngCatalog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link type="text/css" href="../../Styles/bg.css" rel="Stylesheet" />
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.js"></script>
    <script type="text/javascript" src="../../Scripts/jqex.js"></script>
    <script type="text/javascript" src="../../Scripts/Common.js"></script>
    <script type="text/javascript" src="../../Scripts/calendar.js"></script>
    <title>栏目管理</title>
    <script type="text/javascript">
        $(function () {
            $('#tre_obj :checkbox').each(function () {
                $(this).bind('click', function () {
                    var n = $(this).parents("table").next('div');
                    var c = this.checked;
                    if (n) {
                        n.find(":checkbox").each(function () {
                            $(this).attr('checked', c);
                        })
                    }
                });
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div class="mngTitle">
            <span class="mngEmphasis">栏目管理</span>
        </div>
        <table style="width: 100%">
            <tr>
                <td valign="top" width="30%">
                    <asp:TreeView ID="tre_obj" runat="server" BorderColor="#CCCCCC" BorderStyle="Dashed"
                        BorderWidth="1px" ShowCheckBoxes="All" ShowLines="True" Width="99%" OnSelectedNodeChanged="tre_obj_SelectedNodeChanged">
                        <SelectedNodeStyle BackColor="#999999" Font-Bold="True" />
                    </asp:TreeView>
                    <div style="margin-top: 5px">
                        <asp:Button ID="btn_exportSelected" runat="server" Text="导出选中" OnClick="btn_exportSelected_Click"
                            CssClass="mngBtn" CausesValidation="false" />
                        <asp:Button ID="btn_exportAll" runat="server" Text="导出全部" OnClick="btn_exportAll_Click"
                            CssClass="mngBtn" CausesValidation="false" />
                        <asp:Button ID="btn_delete" runat="server" Text="删除选中" CausesValidation="False" OnClientClick="return confirm('您确认要删除么？')"
                            OnClick="btn_delete_Click" CssClass="mngBtn" />
                        <asp:Button ID="btn_saveSequence" runat="server" Text="保存顺序" OnClick="btn_saveSequence_Click"
                            CssClass="mngBtn" CausesValidation="false" />
                        <asp:Button ID="btn_moveUp" runat="server" Text="上移" OnClick="btn_moveUp_Click" CssClass="mngBtn"
                            CausesValidation="false" />
                        <asp:Button ID="btn_moveDown" runat="server" Text="下移" OnClick="btn_moveDown_Click"
                            CssClass="mngBtn" CausesValidation="false" />
                        <br />
                        <br />
                        注:<br />
                        选中一个某个节点，点击“上移”，“下移”按钮，可以使此节点的位置在兄弟节点之间上下移动。<br />
                        点击“保存顺序”按钮，“上移”和“下移”的最终效果就保存到系统。</div>
                </td>
                <td style="width: 20px;">
                </td>
                <td valign="top">
                    <div class="mngTitle">
                        <span class="mngEmphasis">栏目信息</span>编辑：<asp:Label ID="lbl_op" runat="server" Text=""></asp:Label>
                    </div>
                    <div>
                        <table class="mngDetail">
                            <tr>
                                <td class="itemLabel">
                                    栏目名：
                                </td>
                                <td class="itemValue">
                                    <asp:TextBox ID="txt_name" runat="server" CssClass="itemCtrl"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txt_name"
                                        ErrorMessage="必选项*" Font-Size="9pt" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="itemLabel">
                                    父栏目：
                                </td>
                                <td class="itemValue">
                                    <asp:Label ID="lbl_parentCatalog" runat="server" Text=""></asp:Label>
                                </td>
                            </tr>
                            <!--<tr>
                                <td class="itemLabel">
                                    备注：
                                </td>
                                <td class="itemValue">
                                    <asp:TextBox ID="txt_comment" TextMode="MultiLine" runat="server" CssClass="itemCtrlMulti"></asp:TextBox>
                                </td>
                            </tr>-->
                            <tr>
                                <td class="itemLabel">
                                </td>
                                <td class="itemValue">
                                    <asp:Button ID="btn_ok" runat="server" Text="保存" OnClick="btn_ok_Click" CssClass="mngBtn" />
                                    <asp:Button ID="btn_addRoot" runat="server" Text="新增根栏目" OnClick="btn_addRoot_Click"
                                        CausesValidation="False" CssClass="mngBtn" />
                                    <asp:Button ID="btn_add" runat="server" Text="新增子栏目" OnClick="btn_add_Click" CausesValidation="False"
                                        CssClass="mngBtn" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
            <tr>
                <td valign="top" width="30%">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
